<style>
    .layui-layer-close{
        display: none !important;
    }
</style>
<div id="content-container" class="container">
    <div class="user-section login-section">
        <div class="logon-tab clearfix"><a href="{:url('user/login')}?url={$url|urlencode|htmlentities}">{:__('Sign in')}</a> <a class="active">{:__('Sign up')}</a></div>
        <div class="login-main">
            <form name="form1" id="register-form"  method="POST" action="">
                <!--@IndexRegisterFormBegin-->
                <input type="hidden" name="invite_user_id" value="0"/>
                <input type="hidden" name="url" value="{$url|htmlentities}"/>
                {:token()}

                <div class="form-group">
                    <label class="control-label">{:__('Username')}</label>
                    <div class="controls">
                        {if $is_email eq 0}
                        <input type="text" id="username" name="username" data-rule="required;username" class="form-control" placeholder="{:__('Mobile')}">
                        {else/}
                        <input type="text" id="username" name="username" data-rule="required;email" class="form-control" placeholder="{:__('Email')}">
                        {/if}
                        <p class="help-block"></p>
                    </div>
                </div>

                <div class="control-label">{:__('Password')}</div>
                <div class="input-group">
                    <input type="password" id="password" name="password" data-rule="required;password" class="form-control" placeholder="{:__('Password must be 6 to 30 characters')}">
                    <span class="input-group-addon"><i class="fa fa-eye-slash pwdType" id="icon-style" style="font-size: 16px;cursor: pointer"></i></span>
                </div>
                <div class="form-group" style="margin-top: 14px">
                    <label for="captcha" class="control-label">{:__('Captcha')}:</label>
                    <div class="controls">
                        <div class="input-group">
                            {if $is_email eq 0}
                                <input type="text" name="captcha" id="captcha_val"  class="form-control" data-posturl="{:url('api/validate/check_sms_correct')}" data-rule="required;length({$Think.config.captcha.length});digits"/>
                                <span class="input-group-btn" style="padding:0;border:none;">
                                <a href="javascript:;" class="btn btn-primary" id="sendBtn" data-posturl="{:url('api/sms/send')}">{:__('Send verification code')}</a>
                                 </span>
                            {else/}
                                 <input type="text" name="captcha" id="captcha_val"  class="form-control" data-posturl="{:url('api/validate/check_email_correct')}" data-rule="required;length({$Think.config.captcha.length});digits"/>
                                <span class="input-group-btn" style="padding:0;border:none;">
                                <a href="javascript:;" class="btn btn-primary" id="sendBtn" data-posturl="{:url('api/ems/send')}">{:__('Send verification code')}</a>
                                 </span>
                            {/if}

                        </div>
                        <span class="msg-box"></span>
                    </div>
                </div>


                <div class="form-group" style="margin-top: 10px;">
                    <div class="controls">
                        <div class="checkbox inline">
                            <label style="margin-right: 0;width: 14px">
                                <input type="checkbox" name="keeplogin"  value="1" class="read_service" id="check_read" >
                                <input type="hidden" value="0" id="has_read_service_put" name="has_read_service_put">
                                <input type="hidden" value="0" id="has_read_public_put" name="has_read_public_put">
                            </label>


                            <span>{:__('Read And Agree')}</span>
                            <span class="service_article" style="cursor: pointer">[{$articleData['title']}]、</span>
                            <span class="public_article" style="cursor: pointer">[{$articleData2['title']}]</span>
                        </div>
                        <div class="pull-right"></div>
                    </div>
                    <p style="padding-left: 20px;">{:__('Must open and read the above two articles')}</p>
                </div>

                <div class="form-group" style="margin-top: 22px;">
                    <button type="submit" class="btn btn-primary btn-lg btn-block">{:__('Sign up')}</button>
                    <a href="{:url('user/login')}?url={$url|urlencode|htmlentities}" class="btn btn-default btn-lg btn-block mt-3 no-border">{:__('Already have an account? Sign in')}</a>
                </div>
                <!--@IndexRegisterFormEnd-->
            </form>
        </div>
    </div>
</div>
<script type="text/html" id="showService">
    <style>
        .has_read{
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 6px;
            cursor: pointer;
            background: #cfcfcf;
            border-radius: 8px;
        }
        .tiaokuan{
            display: flex;
            padding: 6px 2px;
            color: #000;
            font-size: 20px;
            border-radius: 12px;
            cursor: pointer;
        }
    </style>
    <div style="padding: 20px 30px;color: #000">
        {$articleData['descript']}

        <div style="height: 13px;border-bottom: 1px dashed #9b9b9b"></div>
        <div class="has_read">
            <img src="/assets/img/xuanzhong.png" class="read_service_btn" alt="" style="width: 22px;height: 22px;margin-top: 3px"/>
            <span class="read_service_btn tiaokuan" id="read_btn">{:__('has_read')}</span>
        </div>
    </div>
</script>
<script type="text/html" id="showPublic">
    <style>
        .has_read{
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 6px;
            cursor: pointer;
            background: #cfcfcf;
            border-radius: 8px;
        }
        .tiaokuan{
            display: flex;
            padding: 6px 2px;
            color: #000;
            font-size: 20px;
            border-radius: 12px;
            cursor: pointer;
        }
    </style>
    <div style="padding: 20px 30px;color: #000">
        {$articleData2['descript']}

        <div style="height: 13px;border-bottom: 1px dashed #9b9b9b"></div>
        <div class="has_read">
            <img src="/assets/img/xuanzhong.png" class="read_public_btn" alt="" style="width: 22px;height: 22px;margin-top: 3px"/>
            <span class="read_public_btn tiaokuan" id="">{:__('has_read')}</span>
        </div>
    </div>
</script>
